package com.chen.mapper;

import com.chen.popj.entity.ContestProblem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ContestProblemMapper {

    /**
     * 根据比赛id查询比赛题目
     *
     * @param contestId
     * @return
     */
    @Select("select * from contest_problem where contest_id = #{contestId}")
    List<ContestProblem> getByContestId(Integer contestId);
}
